#!/usr/bin/make -f

%:
	dh ${@}


override_dh_auto_build:
	# Remove Electron bundle
	sed -i '/"electron":/d' package.json
	sed -i '/"electron-builder":/d' package.json
	sed -i '/"electron-notarize":/d' package.json
	sed -i '/"postinstall":/d' package.json
	
	# Build
	npm_config_cache=./npm_cache npm install
	npm prune --production
	cp publish/icon.svg netron.svg
	
	# Delete unused files
	rm -f node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}

override_dh_auto_test:

